package code.rocky.chapter08;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;

public class Suggest110 {
    public static void main(String[] args) {
        demo01();


    }

    private static void demo01() {
        // InputStream is = new FileInputStream("1.txt");
        try {
            InputStream is = new FileInputStream("1.txt");
        } catch (FileNotFoundException e) {
            // 方便开发和维护人员而设置的异常信息
            e.printStackTrace();
            // throw new MyBusinessException
        }
    }

    private static void demo02() {
        // InputStream is = new FileInputStream("1.txt");
        try {
            InputStream is = new FileInputStream("1.txt");
        } catch (FileNotFoundException e) {
            // 方便开发和维护人员而设置的异常信息
            e.printStackTrace();
            // throw new MyBusinessException
        } catch (SecurityException e) {
            // sout 无权访问
            e.printStackTrace();
        }
    }
}
